﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="@Url.Content("~/Themes/Green/Styles/admin.css")" type="text/css" media="screen" />
    <link rel="stylesheet" href="@Url.Content("~/Themes/Green/Styles/main.css")" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Themes/Green/Styles/easywebui.css")" />
    @RenderSection("CSS", false)
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")"> </script>
@*    <script type="text/javascript" src="@Url.Content("~/Themes/Green/Scripts/promise.js")"></script>*@
</head>
<body>
    <div id="body-wrapper">
        <div id="sidebar">
            <div id="sidebar-wrapper">
                <div id="profile-links">
                    <br />
                </div>
                <ul id="main-nav">
                    <li>
                        @Html.ActionLink("返回首页", "Index", "Home", null, new { @class = "nav-top-item no-submenu" })
                    </li>
                    <li><a href="#" class="nav-top-item">文章管理</a>
                        <ul>
                            <li>@Html.ActionLink("新文章", "NewArticle", "Admin", null, null)</li>
                            <li>@Html.ActionLink("管理文章", "Articles", "Admin", null, null)</li>
                            <li><a href="#">管理评论</a></li>
                            <li>@Html.ActionLink("管理分类", "Category", "Admin", null, null)</li>
                            <li>
                                @Html.RouteLink("管理Tag", "Default", new { controller = "Admin", action = "ManageTags", })
                            </li>
                        </ul>
                    </li>
                    <li><a href="#" class="nav-top-item">博客设置</a>
                        <ul>
                            <li><a href="@Url.Action("BlogSetting","Admin",null)">一般设置</a></li>
                            <li><a href="#">主题设置</a></li>
                            <li><a href="@Url.Action("BackupAndRestore","Admin",null)">备份与还原</a></li>
                            <li>
                                @Html.RouteLink("更改后台密码", "Default", new { controller = "Admin", action = "ChangePassword", })
                            </li>
                        </ul>
                    </li>
                    <li><a href="#" class="nav-top-item">其他</a>
                        <ul>
                            <li>
                                <a href="@Url.Action("SoftwareStatistics", "Admin", new { id=1, softwareName = "all"})">软件使用情况</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <div id="main-content">
            @RenderBody()
        </div>
    </div>
    <script type="text/javascript" src="@Url.Content("~/Scripts/easywebui.js")"> </script>
    <script src="@Url.Content("~/Themes/Green/Scripts/admin.js")" type="text/javascript"></script>
    @if (TempData["msgbox"] != null)
    { 
        <script type="text/javascript">
                $(function(){
                    @Html.Raw(TempData["msgbox"] as string)
                });
        </script>
    }
    @RenderSection("Scripts", false)
</body>
</html>
